#include "stdafx.h"

#include "SyncObj.h"

CSyncObj::CSyncObj()
{
	InitializeCriticalSection( &m_cs );
}

CSyncObj::~CSyncObj()
{
	DeleteCriticalSection( &m_cs );
}

void CSyncObj::Lock()
{
	EnterCriticalSection( &m_cs );
}

void CSyncObj::UnLock()
{
	LeaveCriticalSection( &m_cs );
}